package com.itheima.d1_polymorphism.test;

// Chicken 类，继承自 Animal 类
class Chicken extends Animal {
    String name = "鸡🐔";

    @Override
    public void makeSound() {
        System.out.println("咯咯咯");
    }
    public void layEgg() {
        System.out.println("鸡🐔下了个蛋");
    }
}
